<notempty name="theme_vars.phone_cn">
    <div class="echehui-head">
        <div class="container">
            <div class="head-phone-cn"> {$theme_vars.phone_cn|default="0755-8222 8223" } </div>
        </div>
    </div>
</notempty>
<div class="echehui-search">
    <div class="container">
        <a class="col-md-3 navbar-brand" href="__ROOT__/"><img src="<notempty name='theme_vars.web_logo'>/upload/</notempty>{$theme_vars.web_logo|default='__TMPL__/public/assets/images/logo.png'}"></a>

        <form class="col-md-6 navbar-form navbar-left" method="post" action="{:cmf_url('rental/Search/index')}">
            <php>
                isset($category_id) || $category_id=0;
            </php>

            <div class="form-group clearboth">
                <ul id="search-select">
                    <li id="tab" data='0' <eq name="category_id" value="0"> class="active"</eq>>新车</li>
                    <rental:categories limit="8">
                        <li id="tab" data="{$vo.id}" <eq name="vo.id" value="$category_id">class="active"</eq>>{$vo.name}</li>
                    </rental:categories>
                </ul>
                <input type="text" class="form-control echehui-search-input clearboth" name="keyword" placeholder="请输入心仪的品牌或车型" value="{:input('param.keyword','')}">
                <input type="hidden" id="search-select-category" name="category_id" value="{:input('param.category_id','')}">
                <input type="submit" id="search" class="btn btn-primary echehui-search-btn" value="搜 索" style="margin:0" />
            </div>

        </form>
        <script>
            $('#search-select li').click(function() {
                $(this).addClass('active').siblings().removeClass('active');
                $('#search-select-category').val($(this).attr('data'));
            });
        </script>
    </div>

</div>
<nav class="navbar navbar-echehui navbar-fixed-top active">
    <div class="container active">
        <div class="navbar-header navbar-header-echehui">
            <button type="button" class="navbar-toggle collapsed fa fa-bars" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            </button>

        </div>
        <div class="collapse navbar-collapse active" id="bs-example-navbar-collapse-1">
            <ul id="main-menu" class="nav navbar-nav">
                <navigation nav-id="" root="" id="main-navigation" class="nav navbar-nav navbar-nav-custom" max-level="0">
                    <navigationMenu root="li" class="menu-item menu-item-level-{$level}">
                        <a href="{$menu.href|default=''}" target="{$menu.target|default=''}">
                            {$menu.name|default=''}
                        </a>
                    </navigationMenu>
                    <navigationFolder root="li" class="dropdown dropdown-custom dropdown-custom-level-{$level}" dropdown="ul" dropdown-class="dropdown-menu dropdown-menu-level-{$level}">
                        <a href="#" class="dropdown-toggle dropdown-toggle-{$level}" data-toggle="dropdown">
                            {$menu.name|default=''}<span class="caret"></span>
                        </a>
                    </navigationFolder>
                </navigation>
            </ul>
        </div>

    </div>
</nav>